<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<script type="text/javascript" src="<%=basePath%>/login/scripts/common.js"></script>
	<link rel="stylesheet" type="text/css" href="login/css/style.css" />
	<link rel="stylesheet" type="text/css" href="login/css/theme1.css" />
<style type="text/css">
td {
	border: none;
}

fieldset {
	display: block;
	padding: 5px 10px 5px 10px;
	line-height: 20px;
	margin-bottom: 10px;
	border: 1px solid #d9e6f0;
	margin-left: 10px;
}

fieldset legend {
	border: 1px solid #d9e6f0;
	background: #fff url(img/form_blue.gif) repeat-x center left;
	color: #375b91;
	font-size: 12px;
	font-weight: bold;
	margin-bottom: 5px;
	padding: 3px;
	width: 150px;
}
input{
	border:1px solid #d9e6f0;
	background:#fff url(login/img/form_blue.gif) repeat-x top left;
	padding:3px;
	margin-bottom:5px;
	width:180px;
}
input,select{
	height:26px;
	margin:0px;
	border:1px solid;
}
textarea{
	border:1px solid #d9e6f0;
	background:#fff url(login/img/form_blue.gif) repeat-x bottom left;
	padding:5px;
	overflow:auto;
}
select{
	margin-left:0px;
	width:181px;
}
</style>
</head>
<body>
<div id="wrapper" style="margin-top: 10px;">
	<div id="content">
    <form method="post" action="linkmanAction!linkmanUpdate.action">
		<div id="box">
			<div>
				<h3>
					当前位置&nbsp;:&nbsp;系统设置&nbsp;>>&nbsp;协管员设置&nbsp;>>&nbsp;协管员列表&nbsp;>>&nbsp;协管员明细
				</h3>
			</div>
			<fieldset id="personal">
			  <legend>
					协管员明细
				</legend>
				<table width="840" border="0" cellpadding="0" cellspacing="3"
					class=".tab_table">
					<tr>
						<td width="130" align="right">名称:
						</td>
						<td>
							<input name="yjUser.cname" type="text" tabindex="1" value="${bean.lmName }"/>
						</td>
						<td width="80" align="right" valign="top">手机号码:</td>
						<td><input name="yjUser.mb" type="text" tabindex="1" value="${bean.lmId }" onkeyup="this.value=this.value.replace(/\D/g,'')"/></td>
					</tr>
					<tr>
						<td align="right">地区:
						</td>
						<td><input name="yjUser.info" value="${bean.lmDq }"/></td>
						<td width="80" align="right" valign="top">性别:</td>
						<td><s:radio cssStyle="width:40px;" name="yjUser.sex" list="#{'男':'男','女':'女'}" value="bean.lmSex" theme="simple" /></td>
					</tr>
					<tr>
						<td align="right">
							职位:
						</td>
						<td><input name="yjUser.works" value="${bean.lmWorks }" type="text" tabindex="1" /></td>
						<td width="80" align="right" valign="top">类别: </td>
						<td>
						<c:if test="${pageType=='show'}">${bean.linkmanType.name}</c:if>
						<c:if test="${pageType=='update' || pageType == 'add'}">
							<select name="linkman.lmTypeId">
								<c:forEach items="${linkmanTypeList}" var="linkmanType">
								<option value="${linkmanType.id }" <c:if test="${linkmanType.id == bean.linkmanType.id}">selected</c:if>>${linkmanType.name }</option>
								</c:forEach>
							</select>
						</c:if>
						</td>
					</tr>
					<tr>
					<td align="right" valign="top">所属镇区: </td>
						<td>
						<c:if test="${pageType=='show'}">${bean.townId.TName}</c:if>
						<c:if test="${pageType=='update' || pageType == 'add'}">
							<select name="linkman.townId">
								<c:forEach items="${townList}" var="town">
								<option value="${town.TNum }" <c:if test="${town.TNum == bean.townId.TNum}">selected</c:if>>${town.TName }</option>
								</c:forEach>
							</select>
						</c:if>
						</td>
					</tr>
				</table>
			</fieldset>
			<div align="center">
            	<input type="hidden" name="className" value="linkman"/>
				<input type="hidden" name="linkman.lmNum" value="${bean.lmNum }"/>
				<input type="hidden" name="yjUser.username" value="${bean.lmUser }"/>
				<c:if test="${actionName!=null}">
            	<input type="submit" value="提  交"/>&nbsp;&nbsp;
            	</c:if>
				<input type="button" value="返  回" onclick="javascript:forBack();"/>
			</div>
			<br/>
		</div>
        </form>
	</div>
</div>
</body>
</html>